package studentdemo.modul;

public class Course {
    private String cno;
    private String cname;
    private String semester;
    private int hours;
    private String exam;
    private int credit;

    public Course() {}

    public Course(String cno, String cname, String semester, int hours, String exam, int credit) {
        this.cno = cno;
        this.cname = cname;
        this.semester = semester;
        this.hours = hours;
        this.exam = exam;
        this.credit = credit;
    }

    public String getCno() { return cno; }
    public void setCno(String cno) { this.cno = cno; }
    public String getCname() { return cname; }
    public void setCname(String cname) { this.cname = cname; }
    public String getSemester() { return semester; }
    public void setSemester(String semester) { this.semester = semester; }
    public int getHours() { return hours; }
    public void setHours(int hours) { this.hours = hours; }
    public String getExam() { return exam; }
    public void setExam(String exam) { this.exam = exam; }
    public int getCredit() { return credit; }
    public void setCredit(int credit) { this.credit = credit; }

    public String toString() { return cname + "(" + cno + ")"; }
} 